﻿using MediatR;
using Microsoft.Extensions.Logging;

namespace NM.Module.Manager.API.Commands;

public class ModulerInstalldEventHandler : INotificationHandler<ModulerInstalldEvent>
{
    private readonly ILogger<ModulerInstalldEventHandler> _logger;

    public ModulerInstalldEventHandler(
        ILogger<ModulerInstalldEventHandler> logger
        )
    {
        _logger = logger;
    }
    public Task Handle(ModulerInstalldEvent notification, CancellationToken cancellationToken)
    {
        _logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().FullName);
        return Task.CompletedTask;
    }
}

